package com.techsoul.module.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.basic.pojo.entity.MyCalendar;
import com.techsoul.module.basic.pojo.param.MyCalendarSearchParam;
import com.techsoul.module.basic.pojo.vo.MyCalendarVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务汇总日历Mapper接口
 *
 * @author liuen
 * @date 2023-08-12
 */
public interface MyCalendarMapper extends BaseMapper<MyCalendar> {

    /**
     * 详情
     * @param id
     * @return
     */
    MyCalendarVo findById(String id);
    List<MyCalendar> findCalendarByShipper(@Param("year") String year,@Param("month") String month,@Param("shipperCode") String shipperCode);


    List<MyCalendar> findCalendarByShipperAll(@Param("shipperCode") String shipperCode);
    List<MyCalendar> findAllCalendarByShipper(@Param("shipperCode") String shipperCode);

    /**
     * 列表
     * @param params
     * @return
     */
    List<MyCalendarVo> findAll(@Param("params") MyCalendarSearchParam params);

    /**
     * 分页
     * @param page
     * @param params
     * @return
     */
    IPage<MyCalendarVo> findAll(Page page, @Param("params") MyCalendarSearchParam params);

}
